import sys
from PyQt5.QtWidgets import QApplication
from girlfriend_game import StartMenu

def main():
    """游戏入口函数"""
    app = QApplication(sys.argv)
    
    # 设置应用程序样式
    app.setStyle('Fusion')
    
    # 创建并显示开始菜单
    start_menu = StartMenu()
    start_menu.show()
    
    # 运行应用程序
    sys.exit(app.exec_())

if __name__ == '__main__':
    main()